package com.mmy.service.impl.restaurant;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmy.dao.restaurant.VRestaurantBaseRepository;
import com.mmy.domain.restaurant.VRestaurantBase;
import com.mmy.service.restaurant.VRestaurantBaseService;

@Service
public class VRestaurantBaseServiceImpl implements VRestaurantBaseService {

	@Autowired
	VRestaurantBaseRepository vRestaurantBaseRepository;

	/**
	 * 查找全部
	 * 
	 * @param
	 * @return
	 */
	public List<VRestaurantBase> findAll() {
		// TODO Auto-generated method stub
		return vRestaurantBaseRepository.findAll();
	}

	/**
	 * 通过查询条件查询
	 * 
	 * @param
	 * @return
	 */
	public List<VRestaurantBase> findBySearch(String cRestaurantName, String strZoneID, String cRate,
			String strScenicID) {

		return vRestaurantBaseRepository.findBySearch(cRestaurantName, strZoneID, cRate, strScenicID);
	}

	/* 通过ID查询 */
	public VRestaurantBase findByRestaurantID(int iRestaurantID) {
		// TODO Auto-generated method stub
		return vRestaurantBaseRepository.findByRestaurantID(iRestaurantID);
	}

}
